package com.swyc.osschat.Test.jiajiemi.sha1;

import com.swyc.osschat.Common.Util.Decode.SHAUtil;

/**
 * @description TODO
 * @Author: z156940l@outlook.com
 * @className Test
 * @Date: 2023/3/21 18:01
 */
public class Test {

    public static void main(String[] args) {
        String str = "这是一段SHA加密文字";
        try {
            String encrypt = SHAUtil.encrypt(str);
            System.out.println("加密后文字1：" + encrypt);
            System.out.println("加密后文字2：" + SHAUtil.encrypt2(str));
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
